package com.qf.common.redis.enums;

/**
 * @author zdl
 * @date 2025/3/24
 */
public enum RedisKeyEnum {
    KEY_SMS_CODE("validate:code:%s", 60 * 5);

    RedisKeyEnum(String key, int timeout) {
        this.key = key;
        this.timeout = timeout;
    }

    private String key;
    private int timeout;

    public String getKey() {
        return key;
    }

    public int getTimeout() {
        return timeout;
    }
}
